package com.ncepu.clubmanagement.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Person {
    private Integer id;
    private String account;
    private String password;
    private String userName;
    private String email;
    private String phoneNum;
    private Integer schId;
    private short sex;
    private String headImage;  // 头像

     public PersonWithSchoolName toPersonWithSchoolName(String schName) {
         return new PersonWithSchoolName(id, account, password, userName, email, phoneNum, schName, sex, headImage);
     }
}
